package com.xmgps.speech.service;

import com.sun.jna.Library;
import com.sun.jna.Native;
import com.sun.jna.Pointer;
import com.sun.jna.ptr.IntByReference;

/**
 * Author: Wang Shao Kui
 * Create date: 2021/7/8 - 11:49
 * Description:
 */
public interface MscLibrary extends Library {
	// DLL文件默认路径为项目根目录，若DLL文件存放在项目外，请使用绝对路径
//	MscLibrary INSTANCE = Native.load("msc_x64", MscLibrary.class);

	public int MSPLogin(String usr, String pwd, String params);

	//文档方法写错了,耽搁一段时间   net.java.dev.jna需要这个包
	//char * 对应String ;;;int *对应IntByReference
	String QTTSSessionBegin(String params, IntByReference errorCode);

	//char * 对应String ;;;int 对应int;;;
	public int QTTSTextPut(String sessionID, String textString, int textLen, String params);

	//void * 对应Pointer;;;char *对应String ;;;int * 对应IntByReference;;;
	Pointer QTTSAudioGet(String sessionID, IntByReference audioLen, IntByReference synthStatus, IntByReference errorCode);

	//char *对应String;;;
	public int QTTSSessionEnd(String sessionID, String hints);

	public int MSPLogout();
}
